package com.shire.shire_interface.service.welcome;

import com.shire.shire_interface.dao.welcome.WxWelcomTaskDao;
import com.shire.shire_interface.model.welcome.WxWelcomTask;
import com.shire.shire_interface.model.welcome.WxWelcomTaskExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WxWelcomeTaskService {

    @Resource
    private WxWelcomTaskDao wxWelcomTaskDao;


    public List<WxWelcomTask> selectByExample(WxWelcomTaskExample wxWelcomTaskExample) {
        return wxWelcomTaskDao.selectByExample(wxWelcomTaskExample);
    }
    public int insertWelcomeTask(WxWelcomTask task){
        return wxWelcomTaskDao.insertSelective(task);
    }

    public int deleteByExample(WxWelcomTaskExample wxWelcomTaskExample) {

        return wxWelcomTaskDao.deleteByExample(wxWelcomTaskExample);
    }
}
